#ifndef __LOG_H__
#define __LOG_H__

#include <string>
#include "spdlog/spdlog.h"
#include "spdlog/fmt/fmt.h"

namespace Log
{
    enum class LogType
    {
        GAME,
        TERRAIN,
        PLAYER,
        NET,
    };

    void Init();
    void Dispose();

    // 控制台打印，和文件写入
    
    void Info(const std::string& message, LogType type = LogType::GAME);
    void Warn(const std::string& message, LogType type = LogType::GAME);
    void Error(const std::string& message, LogType type = LogType::GAME);
    void Debug(const std::string &message, LogType type = LogType::GAME);
};

#endif